package main

import (
	_ "blog/routers"
	//_"blog/filter"
	"github.com/astaxie/beego"
	"github.com/beego/i18n"

	//	"github.com/astaxie/beego/session"
)

func main() {
	beego.AddFuncMap("i18n", i18n.Tr)

	//	var globalSessions *session.Manager
	//	globalSessions, _ = session.NewManager("memory", `{"cookieName":"gosessionid", "enableSetCookie,omitempty": true, "gclifetime":3600, "maxLifetime": 3600, "secure": false, "sessionIDHashFunc": "sha1", "sessionIDHashKey": "", "cookieLifeTime": 3600, "providerConfig": ""}`)
	//    go globalSessions.GC()

	fmt.Print("启动程序", beego.Config("appname"), "\r\n")
	beego.Run()
}
